<?php
session_start();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="layout.css" />
<title>Member</title>
</head>

<body>
<div id="container">
<div id="logo"><img src="images/logo.png" alt="Logo" height="117" width="619" /></div>
<div id="nav">
<ul>
        <li><a href="index.php">Home</a></li>
        <li><a href="products.php">Products</a></li>
        <li><a href="contact.php">Contact Me</a></li>
</ul>
</div>
<div id="content">
        <p>Nick Pratt's E-commerce site for Web-Server Programming Fall 2011</p>
        <br />
<p>This site uses...</p>
<ul>
  <li>PHP</li>
  <li>HTML/XML</li>
  <li>My Sql</li>
  <li>Javascript</li>
</ul>

<p>to put together the basic attributes of an E-commerce website.</p>
</div>
<?php
if($_SESSION['username']){
	echo "Welcome, ".$_SESSION['username']."!<br><form action='logout.php' method='POST'><br><input type='submit' value='Log Out'><br>
</form></p><p>";
	echo "<a href='editaccount.php'>Edit Account</a>";
}
else
	die("You must be logged in!");
?>

<div id="footer"><i>Copyright &copy; 2012 E-commerce site</i><br />
<a href="mailto:npratt3284@gmail.com">npratt3284@gmail.com</a></div>

</div>

</body>
</html>